package me.jessyan.mvparms.demo.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;
import me.jessyan.mvparms.demo.mvp.contract.RichEditorContract;
import me.jessyan.mvparms.demo.mvp.model.RichEditorModel;

/**
 * @Author: 海洋
 * @Date: 2018/8/22
 * @Desc:
 */

@Module
public class RichEditorModule {

    private RichEditorContract.View view;

    public RichEditorModule(RichEditorContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    RichEditorContract.Model provideRichEditorModel(RichEditorModel model) {
        return model;
    }

    @ActivityScope
    @Provides
    RichEditorContract.View provideRichEditorView(){
        return this.view;
    }
}
